home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 2010 April / PCWorld0410.iso / pluginy Firefox / 4287 / 4287.xpi / chrome / splitbrowser.jar / content / splitbrowser / config.xul < prev    next >
Extensible Markup Language  |  2009-11-05  |  11KB  |  295 lines

  1. <?xml version="1.0"?>
  2.  
  3. <?xml-stylesheet href="chrome://global/skin/"?>
  4.  
  5. <!DOCTYPE prefwindow [
  6. <!ENTITY % mainDTD SYSTEM "chrome://splitbrowser/locale/splitbrowser.dtd">
  7. %mainDTD;
  8. ]>
  9.  
  10. <prefwindow id="splitbrowser-config"
  11.     xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
  12.     title="&splitbrowser.title;">
  13.  
  14. <prefpane id="prefpane-general" label="&splitbrowser.tab.general;">
  15.     <preferences>
  16.         <preference id="splitbrowser.subbrowser.autoFocus"
  17.             name="splitbrowser.subbrowser.autoFocus"
  18.             type="bool"/>
  19.         <preference id="splitbrowser.delay.subbrowser.autoFocus"
  20.             name="splitbrowser.delay.subbrowser.autoFocus"
  21.             type="int"/>
  22.         <preference id="splitbrowser.tab.closetab"
  23.             name="splitbrowser.tab.closetab"
  24.             type="bool"/>
  25.         <preference id="splitbrowser.syncScroll.mainArea"
  26.             name="splitbrowser.syncScroll.mainArea"
  27.             type="bool"/>
  28.         <preference id="splitbrowser.syncScroll.horizontal"
  29.             name="splitbrowser.syncScroll.horizontal"
  30.             type="bool"/>
  31.     </preferences>
  32.  
  33.     <vbox>
  34.  
  35.     <checkbox id="splitbrowser.subbrowser.autoFocus-check" flex="1"
  36.         label="&splitbrowser.subbrowser.autoFocus;"
  37.         preference="splitbrowser.subbrowser.autoFocus"/>
  38.     <hbox align="center">
  39.         <spacer style="width:1em;"/>
  40.         <label value="&splitbrowser.delay.subbrowser.autoFocus.before;"
  41.             control="splitbrowser.delay.subbrowser.autoFocus-check"/>
  42.         <textbox id="splitbrowser.delay.subbrowser.autoFocus-check" style="width:5em;"
  43.             preference="splitbrowser.delay.subbrowser.autoFocus"
  44.             type="number" min="1" max="100" increment="1"/>
  45.         <label value="&splitbrowser.delay.subbrowser.autoFocus.after;"
  46.             control="splitbrowser.delay.subbrowser.autoFocus-check"/>
  47.     </hbox>
  48.  
  49.     <checkbox id="splitbrowser.syncScroll.mainArea-check" flex="1"
  50.         label="&splitbrowser.syncScroll.mainArea;"
  51.         preference="splitbrowser.syncScroll.mainArea"/>
  52.     <radiogroup orient="horizontal" align="center"
  53.         id="splitbrowser.syncScroll.horizontal-radio"
  54.         preference="splitbrowser.syncScroll.horizontal">
  55.         <spacer style="width:1em;"/>
  56.         <radio label="&splitbrowser.syncScroll.horizontal.true;" value="true"/>
  57.         <radio label="&splitbrowser.syncScroll.horizontal.false;" value="false"/>
  58.     </radiogroup>
  59.  
  60.     <groupbox>
  61.         <caption label="&splitbrowser.tab.closetab.caption;"/>
  62.         <radiogroup id="splitbrowser.tab.closetab-radiogroup"
  63.             preference="splitbrowser.tab.closetab"
  64.             orient="vertical">
  65.             <radio label="&splitbrowser.tab.closetab.move;"  value="true"/>
  66.             <radio label="&splitbrowser.tab.closetab.clone;" value="false"/>
  67.         </radiogroup>
  68.     </groupbox>
  69.  
  70.     </vbox>
  71.  
  72. </prefpane>
  73.  
  74. <prefpane id="prefpane-appearance" label="&splitbrowser.tab.appearance;"
  75.     onpaneload="
  76.         var check = document.getElementById('splitbrowser.tabs.autoHide-check');
  77.         if (document.getElementById('splitbrowser.tabs.enabled').value)
  78.             check.removeAttribute('hidden');
  79.         else
  80.             check.setAttribute('hidden', true);
  81.     ">
  82.     <preferences>
  83.         <preference id="splitbrowser.tabs.enabled"
  84.             name="splitbrowser.tabs.enabled"
  85.             type="bool"/>
  86.         <preference id="splitbrowser.show.toolbar.always"
  87.             name="splitbrowser.show.toolbar.always"
  88.             type="bool"/>
  89.         <preference id="splitbrowser.show.toolbar.navigation.always"
  90.             name="splitbrowser.show.toolbar.navigation.always"
  91.             type="bool"/>
  92.         <preference id="splitbrowser.show.syncScroll"
  93.             name="splitbrowser.show.syncScroll"
  94.             type="bool"/>
  95.         <preference id="splitbrowser.show.collapseexpand"
  96.             name="splitbrowser.show.collapseexpand"
  97.             type="bool"/>
  98.         <preference id="splitbrowser.tabs.autoHide"
  99.             name="splitbrowser.tabs.autoHide"
  100.             type="bool"
  101.             inverted="true"/>
  102.         <preference id="splitbrowser.show.addbuttons.hover.type"
  103.             name="splitbrowser.show.addbuttons.hover.type"
  104.             type="int"/>
  105.         <preference id="splitbrowser.show.addbuttons.dragdrop"
  106.             name="splitbrowser.show.addbuttons.dragdrop"
  107.             type="bool"/>
  108.         <preference id="splitbrowser.appearance.addbuttons.size"
  109.             name="splitbrowser.appearance.addbuttons.size"
  110.             type="int"/>
  111.         <preference id="splitbrowser.appearance.addbuttons.area"
  112.             name="splitbrowser.appearance.addbuttons.area"
  113.             type="int"/>
  114.     </preferences>
  115.  
  116.     <vbox>
  117.  
  118.     <checkbox id="splitbrowser.show.toolbar.always-check" flex="1"
  119.         label="&splitbrowser.show.toolbar.always;"
  120.         preference="splitbrowser.show.toolbar.always"/>
  121.     <checkbox id="splitbrowser.show.toolbar.navigation.always-check" flex="1"
  122.         label="&splitbrowser.show.toolbar.navigation.always;"
  123.         preference="splitbrowser.show.toolbar.navigation.always"/>
  124.     <checkbox id="splitbrowser.show.syncScroll-check" flex="1"
  125.         label="&splitbrowser.show.syncScroll;"
  126.         preference="splitbrowser.show.syncScroll"/>
  127.     <checkbox id="splitbrowser.show.collapseexpand-check" flex="1"
  128.         label="&splitbrowser.show.collapseexpand;"
  129.         preference="splitbrowser.show.collapseexpand"/>
  130.     <checkbox id="splitbrowser.tabs.autoHide-check" flex="1"
  131.         label="&splitbrowser.tabs.autoHide;"
  132.         preference="splitbrowser.tabs.autoHide"/>
  133.  
  134.     <groupbox>
  135.         <caption label="&splitbrowser.show.addbuttons.caption;"/>
  136.  
  137.         <label value="&splitbrowser.show.addbuttons.hover.type;"/>
  138.         <hbox>
  139.             <spacer style="width:1em;"/>
  140.             <radiogroup id="splitbrowser.show.addbuttons.hover.type-radiogroup"
  141.                 preference="splitbrowser.show.addbuttons.hover.type"
  142.                 orient="vertical">
  143.                 <radio label="&splitbrowser.show.addbuttons.hover.type.0;" value="0"/>
  144.                 <radio label="&splitbrowser.show.addbuttons.hover.type.1;" value="1"/>
  145.             </radiogroup>
  146.         </hbox>
  147.  
  148.         <checkbox id="splitbrowser.show.addbuttons.dragdrop-check" flex="1"
  149.             label="&splitbrowser.show.addbuttons.dragdrop;"
  150.             preference="splitbrowser.show.addbuttons.dragdrop"/>
  151.  
  152.         <grid>
  153.             <columns>
  154.                 <column/>
  155.                 <column/>
  156.                 <column/>
  157.             </columns>
  158.             <rows>
  159.                 <row align="center">
  160.                     <label value="&splitbrowser.addbuttons.size.before;"
  161.                         control="splitbrowser.appearance.addbuttons.size-textbox"/>
  162.                     <textbox id="splitbrowser.appearance.addbuttons.size-textbox" style="width:5em;"
  163.                         preference="splitbrowser.appearance.addbuttons.size"
  164.                         type="number" min="1" max="1000" increment="1"/>
  165.                     <label value="&splitbrowser.addbuttons.size.after;"
  166.                         control="splitbrowser.appearance.addbuttons.size-textbox"/>
  167.                 </row>
  168.                 <row align="center">
  169.                     <label value="&splitbrowser.addbuttons.area.before;"
  170.                         control="splitbrowser.appearance.addbuttons.area-textbox"/>
  171.                     <textbox id="splitbrowser.appearance.addbuttons.area-textbox" style="width:5em;"
  172.                         preference="splitbrowser.appearance.addbuttons.area"
  173.                         type="number" min="1" max="1000" increment="1"/>
  174.                     <label value="&splitbrowser.addbuttons.area.after;"
  175.                         control="splitbrowser.appearance.addbuttons.area-textbox"/>
  176.                 </row>
  177.             </rows>
  178.         </grid>
  179.     </groupbox>
  180.  
  181.     </vbox>
  182.  
  183. </prefpane>
  184.  
  185. <prefpane id="prefpane-target" label="&splitbrowser.tab.target;">
  186.     <preferences>
  187.         <preference id="splitbrowser.search.loadResultsIn"
  188.             name="splitbrowser.search.loadResultsIn"
  189.             type="int"/>
  190.     </preferences>
  191.  
  192.     <groupbox>
  193.         <caption label="&splitbrowser.search.loadResultsIn;"/>
  194.         <radiogroup id="splitbrowser.search.loadResultsIn-radio"
  195.             preference="splitbrowser.search.loadResultsIn"
  196.             orient="vertical">
  197.             <radio label="&splitbrowser.search.loadResultsIn.0;" value="0"/>
  198.             <radio label="&splitbrowser.search.loadResultsIn.1;" value="1"/>
  199.             <radio label="&splitbrowser.search.loadResultsIn.2;" value="2"/>
  200.         </radiogroup>
  201.     </groupbox>
  202.  
  203. </prefpane>
  204.  
  205. <prefpane id="prefpane-menu" label="&splitbrowser.tab.menu;">
  206.     <preferences>
  207.         <preference id="splitbrowser.show.menu"
  208.             name="splitbrowser.show.menu"
  209.             type="bool"/>
  210.         <preference id="splitbrowser.show.tab.context.split"
  211.             name="splitbrowser.show.tab.context.split"
  212.             type="bool"/>
  213.         <preference id="splitbrowser.show.tab.context.layout.grid"
  214.             name="splitbrowser.show.tab.context.layout.grid"
  215.             type="bool"/>
  216.         <preference id="splitbrowser.show.tab.context.layout.x"
  217.             name="splitbrowser.show.tab.context.layout.x"
  218.             type="bool"/>
  219.         <preference id="splitbrowser.show.tab.context.layout.y"
  220.             name="splitbrowser.show.tab.context.layout.y"
  221.             type="bool"/>
  222.         <preference id="splitbrowser.show.tab.context.gather"
  223.             name="splitbrowser.show.tab.context.gather"
  224.             type="bool"/>
  225.     </preferences>
  226.  
  227.     <vbox>
  228.  
  229.     <checkbox id="splitbrowser.show.menu-check" flex="1"
  230.         label="&splitbrowser.show.menu;"
  231.         preference="splitbrowser.show.menu"/>
  232.  
  233.     <groupbox>
  234.         <caption label="&splitbrowser.show.context.caption;"/>
  235.         <checkbox id="splitbrowser.show.tab.context.split-check" flex="1"
  236.             label="&splitbrowser.show.tab.context.split;"
  237.             preference="splitbrowser.show.tab.context.split"/>
  238.         <checkbox id="splitbrowser.show.tab.context.layout.grid-check" flex="1"
  239.             label="&splitbrowser.show.tab.context.layout.grid;"
  240.             preference="splitbrowser.show.tab.context.layout.grid"/>
  241.         <checkbox id="splitbrowser.show.tab.context.layout.x-check" flex="1"
  242.             label="&splitbrowser.show.tab.context.layout.x;"
  243.             preference="splitbrowser.show.tab.context.layout.x"/>
  244.         <checkbox id="splitbrowser.show.tab.context.layout.y-check" flex="1"
  245.             label="&splitbrowser.show.tab.context.layout.y;"
  246.             preference="splitbrowser.show.tab.context.layout.y"/>
  247.         <checkbox id="splitbrowser.show.tab.context.gather-check" flex="1"
  248.             label="&splitbrowser.show.tab.context.gather;"
  249.             preference="splitbrowser.show.tab.context.gather"/>
  250.     </groupbox>
  251.  
  252.     </vbox>
  253.  
  254. </prefpane>
  255.  
  256. <prefpane id="prefpane-session" label="&splitbrowser.tab.session;">
  257.     <preferences>
  258.         <preference id="splitbrowser.state.restore"
  259.             name="splitbrowser.state.restore"
  260.             type="bool"/>
  261.         <preference id="splitbrowser.undo.max"
  262.             name="splitbrowser.undo.max"
  263.             type="int"/>
  264.     </preferences>
  265.  
  266.     <vbox>
  267.         <checkbox id="splitbrowser.state.restore-check"
  268.             label="&splitbrowser.state.restore;"
  269.             preference="splitbrowser.state.restore"/>
  270.         <separator/>
  271.         <hbox align="center">
  272.             <label value="&splitbrowser.undo.max.before;"
  273.                 control="splitbrowser.undo.max-textbox"/>
  274.             <textbox id="splitbrowser.undo.max-textbox" style="width:4em;"
  275.                 preference="splitbrowser.undo.max"
  276.                 type="number" min="0" max="1000" increment="1"/>
  277.             <label value="&splitbrowser.undo.max.after;"
  278.                 control="splitbrowser.undo.max-textbox"/>
  279.         </hbox>
  280.         <hbox align="center">
  281.             <spacer flex="1"/>
  282.             <button label="&splitbrowser.undo.clearCache;"
  283.                 oncommand="undoCache.clearEntries();"
  284.                 flex="1"/>
  285.             <spacer flex="1"/>
  286.         </hbox>
  287.         <spacer flex="1"/>
  288.     </vbox>
  289.  
  290. </prefpane>
  291.  
  292. <script type="application/x-javascript" src="config.js"/>
  293.  
  294. </prefwindow>
  295.